package com.api;

import com.fzebu.fastboot.util.ReqUtil;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;

/**
 * @author Jack
 */
@Path("/fastboot")
public class FastActionApi {

    @GET
    @Path("/formClass")
    @Produces(MediaType.TEXT_PLAIN)
    public String getFormClass(@Context HttpServletRequest request) {
        String tableName = request.getParameter("tablename");
        return ReqUtil.getFormClass(tableName);
    }
}
